package com.wsx.ones.cloud.feign;

import com.wsx.ones.cloud.product.Product;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by wangshuaixin on 17/5/9.
 */
@Component
public class FeignServiceFallback implements FeignService, ProductFeign {

    @Override
    public String remoteWorld(String name) {
        return name + "error";
    }

    @Override
    public String remoteTestPost(@RequestBody Product product) {
        return "post:error";
    }

    @Override
    public String second(Product product) {
        return "product :: error";
    }
}
